
//资产背包，包括房子，车子，等固定资产
import { assetsType } from "../../gameType";
import { game } from "../game";
import { assetsBase, ItemBase } from "../Item/ItemBase";
import { BagBase, BagData } from "./bagBase";

//房子的背包
export class assetsBag extends BagBase<assetsBase>{
    bagData: BagData = {buyNum: 0, items: [], itemCount: 0};
    constructor(data) {
        super(
            { buyNum: 0, items: [], itemCount: 0 },
            data.itemTypes,
            data.bagType
        );
    }
    getHouse() {
        this.getItemsByTypeEx("house");
    }
    getCar() {
        this.getItemsByTypeEx("car");
    }
    getCurHouse() {
        //查看当前的house
        // let id = game.playerMgr.heroInfo.house.id;
        // return this._items[id]
    }
    
}